import { VDT } from "./vdt";
export const valifyPhone = (_rule: any, value: any) => {
    if (!value) {
        return Promise.reject('请输入手机号!')
    } else {
       const v = VDT.mphone(value)
       if (v){
        return Promise.resolve()
       }else {
        return Promise.reject(VDT.messages.mphone)
       }
    }
};